Table of Contents [Hide/Show]
Overview Defining a State Entering a State Using The 'states' Construct Examples DVD Library Request Approval
public workflow MyFlow { // declare a state called 'Start' Start(){} }
public workflow MyFlow { // 'Start' state Start() { // place code to be executed when // the state is entered. } // constructor public MyFlow() { enterstate Start() } }
private ArrayList dataList = new ArrayList(); // //method 'AddData' has a dynamic access modifier // public void AddData(string data) :states(EnterData) { this.dataList.Add(data); }